package hcn.protocol.brandnew.zhenliao.jiancha;

import lombok.Data;
import javax.xml.bind.annotation.*;
import java.util.List;
import hcn.protocol.brandnew.BaseRequest;


/**
 * 检查申请单新增-响应消息(成功) - ODS_03070008_SUC
 *
 * @author enjoyLife
 */
@Data
@XmlRootElement(name = "Data")
@XmlAccessorType(XmlAccessType.FIELD)
public class PostApplyFormALLResponse {

    /**
     * 收费集合
     */
    @XmlElementWrapper(name = "ExpenseLists")
    @XmlElement(name = "ExpenseList")
    private List<ExpenseList> expenseLists;

    @Data
    @XmlAccessorType(XmlAccessType.FIELD)
    public static class ExpenseDetailList {

        /**
         * 医技序号明细id
         */
        @XmlElement(name = "ExpenseDetailId")
        private String expenseDetailId;
        /**
         * 费用项目代码
         */
        @XmlElement(name = "CostId")
        private String costId;
        /**
         * 费用项目名称
         */
        @XmlElement(name = "CostName")
        private String costName;
        /**
         * 费用数量
         */
        @XmlElement(name = "CostNumber")
        private String costNumber;
        /**
         * 费用单价
         */
        @XmlElement(name = "CostPrice")
        private String costPrice;
        /**
         * 费用单位
         */
        @XmlElement(name = "CostUnit")
        private String costUnit;
        /**
         * 费用总计
         */
        @XmlElement(name = "CostSubtotal")
        private String costSubtotal;
    }

    @Data
    @XmlAccessorType(XmlAccessType.FIELD)
    public static class ExpenseList {

        /**
         * 检查申请单编号
         */
        @XmlElement(name = "RequestId")
        private String requestId;
        /**
         * 检查项目名称
         */
        @XmlElement(name = "ItemName")
        private String itemName;
        /**
         * 检查大项内部代码
         */
        @XmlElement(name = "ItemId")
        private String itemId;
        /**
         * 总计金额
         */
        @XmlElement(name = "TotalCost")
        private String totalCost;
        /**
         * 医技序号ID
         */
        @XmlElement(name = "ExpenseId")
        private String expenseId;
        /**
         * 费用列表
         */
        @XmlElementWrapper(name = "ExpenseDetailLists")
        @XmlElement(name = "ExpenseDetailList")
        private List<ExpenseDetailList> expenseDetailLists;
    }

}
